-
-
Notifications
You must be signed in to change notification settings - Fork 184
feat(help_pages): change includes to django-cotton components #5998
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(help_pages): change includes to django-cotton components #5998
Conversation
This commit introduces the template for the new <c-callout> component
Add new CSS to style the alert components. It includes styles for different alert types
The new callout component is now documented under the 'Layout components' section. The 'Other components' section has been renamed to 'Pure markup' for better clarity.
@elisa-a-v @mlissner, could you please check if everything okay here? If so, I'll start implementing these cotton components in the other branches. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you please check if everything okay here?
Done, I tested locally and it all works nicely.
Thanks for the clean PR! LGTM
Automerge set, thanks all! @nazarbodak221, we have a new system to optimize our deployments. It will show up in your new PRs as a PR template: https://github.com/freelawproject/courtlistener/blob/main/.github/PULL_REQUEST_TEMPLATE.md The upshot is that it would be helpful if you added the needed labels to any open and future PRs you have. I did this one as an example: ![]() |
That's awesome, but I thought I didn't have permission to do it. ![]() |
Shoot, you may be right. That's OK, we'll be sure to get them labeled. |
Convert include files to components
For better code organization, these components were moved to a new cotton/ directory. This change improves modularity, makes the parent templates cleaner, and simplifies the reuse of UI elements.
Just let me know if you'd like different styles or colors – I'll change them.
Also sidebar to migration guide(includes) I'd like not to write in cotton, but write in migration guide directly. Say if I can do it.
Affected files:
court_endpoint.html
court_id_mappings.html
deprecation_notice.html
docket_endpoint.html
v3_deprecated_warning.html
Screenshots: